package br.biofoco.p2p.rpc;

public class HttpEndPoint implements EndPoint {

	private final int port;
	private final String address;
	
	public HttpEndPoint(String address, int port) {
		this.address = address;
		this.port = port;
	}

	@Override
	public int getPort() {
		return port;
	}

	@Override
	public Protocol getProtocol() {
		return Protocol.HTTP;
	}

	@Override
	public String toString() {
		return Protocol.HTTP + ":" + port;
	}
	
	public String getAddress() {
		return address;
	}
}
